< previous page page_339 next page >

Page 339
click OK to close the dialog. Then, to finish the process, save the project and then compile the new control by using the File, Make EmpControl.OCX menu option. This registers the new control in Windows and makes it available to the Data Repeater control.
Repeating the OCX
After you finish building the custom control, close the project and reopen the Data Environment project from earlier in the chapter. Now, add a new form to the project, naming it frmRepeater. Then, add a Data Repeater control to the new form (see Figure 12.24), making it large enough to contain several rows of the control you want to repeat and naming it drpEmployee.
12181-0339a.gif
Figure 12.24.
Adding the Data Repeater to a form to display multiple
records from a database.
Note
Remember to add the Data Repeater control to the toolbox by using the Components dialog.

 
< previous page page_339 next page >

If you like this book, buy it!